<template>
    <div class="mydouban">
        <div v-if="isLogin">
            用户中心:{{username}}
        </div>
        <div v-else>
            请向管理员申请权限
        </div>
        
    </div>
</template>

<script>
import {mapState} from 'vuex'
export default {
    name:'Mydouban',
    data(){
        return {}
    },
    computed:{
        ...mapState({
            isLogin:state=> state.user.isLogin,
            username:state=> state.user.username,
            
        })
    }
}
</script>
<style lang="stylus" scoped>

</style>


